<?php

/**
 * 
 */
App::uses('AppModel', 'Model');

class QuoteCategory extends AppModel {
    
    public $useTable = 'quote_category';
    public $name = 'QuoteCategory';

    //A QuoteCategory has many Quotes.
    public $hasMany = array(
        'Quotes' => array(
            'className' => 'Quotes',
            'foreignKey' => 'quotes_type',
            'conditions' => array('valid' => 1)
        )
    );
}